home *** CD-ROM | disk | FTP | other *** search
- property ancestor
-
- on new me
- global gIso
- ancestor = gIso
- return me
- end
-
- on getNumTilesInHouse
- totaltiles = 0
- repeat with x = 1 to ancestor.pwide
- repeat with y = 1 to ancestor.ptall
- if ancestor.mastergrid[x][y][#FP1] <> #NODRAW then
- totaltiles = totaltiles + 1
- end if
- if ancestor.pTotalFloors = 2 then
- if ancestor.mastergrid[x][y][#FP2] <> #NODRAW then
- totaltiles = totaltiles + 1
- end if
- end if
- end repeat
- end repeat
- return totaltiles
- end
-